Page({
  data: {
    // 公告列表
    notifyList: [],
  },
  onLoad() {
    this.getNotifyList()
  },
  async getNotifyList() {
    const { code, data: notifyList } = await wx.http.get('/announcement')
    if (code !== 10000) return wx.utils.toast()
    this.setData({
      notifyList,
    })
  },
})
